package ying;

import jakarta.servlet.*;

import java.io.IOException;

/**
 * ClassName: ServletDemo02
 * Package: ying
 * Description:
 *
 * @Author 刘英杰
 * @Create 2024/9/22 9:38
 * @Version 1.0
 */
public class ServletDemo02 implements Servlet{

    public ServletDemo02() {
        System.out.println("ServletDemo02构造方法被调用..." + this);
    }

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("ServletDemo02init方法被调用..." + this);
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("ServletDemo02service方法被调用..." + this);
    }

    @Override
    public String getServletInfo() {
        return "";
    }

    @Override
    public void destroy() {
        System.out.println("servletDemo02方法被调用..." + this);
    }
}
